package sampleapp.client.gin;

import sampleapp.client.PeoplePresenter;
import sampleapp.client.PeopleView;
import sampleapp.client.PersonWidgetPresenter;
import sampleapp.client.PersonWidgetView;
import sampleapp.client.place.ClientPlaceManager;
import sampleapp.client.place.DefaultPlace;
import sampleapp.client.place.NameTokens;

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.gin.DefaultModule;


public class ClientModule extends AbstractPresenterModule {

	@Override
	protected void configure() {
		install(new DefaultModule(ClientPlaceManager.class));

		//Constants
	    bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.peoplepresenterpage);
	   


		bindPresenter(PeoplePresenter.class, PeoplePresenter.MyView.class,
				PeopleView.class, PeoplePresenter.MyProxy.class);

		bindPresenterWidget(PersonWidgetPresenter.class,
				PersonWidgetPresenter.MyView.class, PersonWidgetView.class);
	}
}
